//
//  Dire_TableviewCell.m
//  MagicBox
//
//  Created by dllo on 16/8/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Dire_TableviewCell.h"
#import "Dire_Model.h"
@interface Dire_TableviewCell()
@property (nonatomic, retain) UILabel *label;
@property (nonatomic, retain) UIImageView *imageview;
@property (nonatomic, retain) UIImageView *image;


@end
@implementation Dire_TableviewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.image = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"mp42390070_1447845427513_28.jpeg"]];
        [self.contentView addSubview:_image];
        self.label = [[UILabel alloc]init];
        [self.contentView addSubview:_label];
        self.imageview = [[UIImageView alloc]init];
        [self.image addSubview:_imageview];
        
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.image.frame = self.contentView.bounds;
    self.imageview.frame = self.contentView.bounds;
    
    
    
}

-(void)setModel1:(Dire_Model *)model1{
    _model1 = model1;
    [self.imageview setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://img.meelive.cn/%@",_model1.portrait]]];
    
//    NSLog(@"%@",_model1.nick);
    
}






@end
